<!DOCTYPE html>
<!--suppress ALL-->
<!--关闭下划线-->
<!-- saved from url=(0052)http://getbootstrap.com/docs/4.0/examples/dashboard/ -->
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">
    <title>xhlMr - 练习</title>
    <!-- Bootstrap core CSS -->
    <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet">
    <!-- Custom styles for this template -->
    <link th:href="@{/css/dashboard.css}" rel="stylesheet">
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <style type="text/css">
        /* Chart.js */

        @-webkit-keyframes chartjs-render-animation {
            from {
                opacity: 0.99
            }
            to {
                opacity: 1
            }
        }

        @keyframes chartjs-render-animation {
            from {
                opacity: 0.99
            }
            to {
                opacity: 1
            }
        }

        .chartjs-render-monitor {
            -webkit-animation: chartjs-render-animation 0.001s;
            animation: chartjs-render-animation 0.001s;
        }

        table {
            table-layout: fixed;
        }

        td {
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
        }
    </style>
</head>

<body>

<!--		顶部导航栏-->
<div th:replace="~{commons/commons :: top}"></div>

<div class="container-fluid">
    <div class="row">
        <!--				侧边栏-->
        <div th:replace="~{commons/commons :: sidebar(active='seckill')}"></div>
        <main role="main" class="col-md-9 ml-sm-auto col-lg-10 pt-3 px-4">
            <div style="height: 65px;text-align: center;color: red;font-size: 16px;font-weight:bold">秒杀</div>

            <div th:each="seckil:${seckillAll}"
                 style="margin: 0 0 10px;width: 310px;height: 425px;border: 2px solid lawngreen;float: left;margin-left: 30px;margin-right: 30px;text-align: center">
                <p style="font-weight:bold;color: red;">[[${seckil.getName()}]]</p>
                <div style="margin-top: 20px;margin-bottom: 7px;height: 200px;">[[${seckil.getIntroduce()}]]</div>
                <div style="margin-bottom: 15px;">库存:[[${seckil.getInventory()}]]</div>
                <div style="color: red;margin-bottom: 20px">秒杀时间:<input disabled="true"
                                                                        th:value="${#dates.format(seckil.getStart(),'yyyy-MM-dd HH-mm-ss')}"/>
                </div>

                <div style="color: red;margin-bottom: 20px">结束时间:<input disabled="true"
                                                                        th:value="${#dates.format(seckil.getEnd(),'yyyy-MM-dd HH-mm-ss')}"/>
                </div>
                <div>
                    <button type="button" class="btn btn-info">购买</button>
                </div>
            </div>


        </main>
    </div>
</div>


</body>

</html>